<%--
功能：获取正在进行中的促销规则列表
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ tag import="java.util.List" %>
<%@ tag import="java.util.ArrayList" %>
<%@ tag import="org.springframework.context.ApplicationContext" %>
<%@ tag import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ tag import="com.probiz.estore.sales.service.PromoRuleManager" %>
<%@ tag import="com.probiz.estore.common.model.sales.PromoRule" %>


<%@ attribute name="returnPromoRuleListName" type="java.lang.String" required="true" description="要返回的促销规则列表名称" %>

<%
	ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(session.getServletContext());
	PromoRuleManager promoRuleManager = (PromoRuleManager) ctx.getBean("promoRuleManager");
	List<PromoRule> promoRuleList = promoRuleManager.getAllPromotionRulesInProcessForFront();
	request.setAttribute(returnPromoRuleListName,promoRuleList);
%>
<jsp:doBody />
